package org.grow.jpa2.controller;

import org.grow.jpa2.dao.StudentScoreJpa;
import org.grow.jpa2.entity.StudentScore;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: xwg
 * @CreateDate: 21-5-27
 */

@CrossOrigin
@RestController
public class StudentScoreController {

    @Autowired
    private StudentScoreJpa studentScoreJpa;
    @PutMapping("/studentScore")
    public Boolean insert(@RequestBody StudentScore studentScore){
        studentScoreJpa.save(studentScore);
        return true;
    }
}
